function [img_proc]=lowLevelImgProc(img)
%--------------------------------------------------------------------------
% Low Level Image Processing Function, responsible for initial filtering.
% Pre-processing occurs here.
%--------------------------------------------------------------------------
% @Parameters:
%               img       ... current frame obtained from video-read stage
%
%    @Returns:
%               img_proc  ... output image after pre-processing
%--------------------------------------------------------------------------

% convert to grayscale and apply 3x3 median filter
img_proc = im2double(rgb2gray(img));
img_proc = imresize(img_proc, [256 NaN]);
%img_proc = medfilt2(img_proc,[3 3]);
%img_proc = wiener2(img_proc,[5 5]);
end
